Skip to content

Add a function to parse a CSR#20344

Open
StephenWall wants to merge 7 commits into
php:masterfrom
StephenWall:csr-parse
Open

Add a function to parse a CSR#20344
StephenWall wants to merge 7 commits into
php:masterfrom
StephenWall:csr-parse

Conversation

@StephenWall

Copy link
Copy Markdown
Contributor

Add a function to parse a CSR and return the information as an array similar to openssl_x509_parse().

@bukka

bukka commented Dec 9, 2025

Copy link
Copy Markdown
Member

This is a good idea and long time overdue (first requested more than 21 years ago... 😄 ) :

I will do a proper review when I'm next on this.

@bukka bukka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks quite good. Needs some (mostly minor) changes.

Comment thread ext/openssl/openssl.c Outdated
Comment thread ext/openssl/openssl.c Outdated
Comment thread ext/openssl/openssl.c Outdated
Comment thread ext/openssl/openssl.c Outdated
Comment thread ext/openssl/tests/parse.csr Outdated
Comment thread ext/openssl/tests/openssl_csr_parse_basic.phpt Outdated
Comment thread ext/openssl/openssl.c Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants